<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();">
    <div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolute"></div>
    <div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid; cursor: pointer">
        Click here to go <a id="taptarget" href="#">there</a>
    </div>

    <script>
        function runTest() {
            var clientRect = document.getElementById("expectedHighlight").getBoundingClientRect();
            var highlight = document.getElementById("highlight");

            highlight.style.left = clientRect.left + "px";
            highlight.style.top = clientRect.top + "px";
            highlight.style.width = clientRect.width + "px";
            highlight.style.height = clientRect.height + "px";
        }
    </script>
</body>
</html>
